import request from '@/utils/request'

// 获取路由
export function allExchangeList (query)  {
  return request({
    url: 'system/exchange/list',
    method: 'post',
    data: query
  })
}

// 用户状态修改
export function changeExchangeStatus(id, status) {
  return request({
    url: '/system/exchange/changeStatus',
    method: 'get',
    params:
      {
        exchangeId: id,
        status: status
      }
  })
}
// 删除用户
export function delExchange(id) {
  return request({
    url: 'system/exchange/' + id,
    method: 'delete'
  })
}
